# ip查询
def ipdw(ip):
    url = 'https://restapi.amap.com/v3/ip?ip=%s&key=1fc7f98c74374a45bd9c158b9a11a173&output=json'%ip

    import requests
    poo  = requests.get(url)
    data = poo.json()
    data = data['province']+data['city']
    return data
